// pages/security/security.js
var app = getApp();
var com = require('../../common.js')
Page({
  data: {
    statusd:1
  },
  onLoad: function(options) {
    var _this = this
    _this.setData({
      phone: wx.getStorageSync('phone')
    })
    com.link(app.link.bankNum, {}, function(res) {
      console.log(res);
      var num = res.data.response.account_number
      _this.setData({
        account_number: num.substring(0, 4) + '*************' + num.substring(15, num.split('').length)
      })
    }, "GET")
  },
  onReady: function() {},
  onShow: function() {
    var _this = this
    setTimeout(() => {
      _this.setData({
        statusd: 0
      })
    }, 1500)
  },
  onHide: function() {},
  onUnload: function() {},
  onPullDownRefresh: function() {},
  onReachBottom: function() {},
  // onShareAppMessage: function() {}
})